{% extends "counterpoint/base.html" %}

{% block page %}
      <div id="main_table">
        <table>
          <tr id="buttonbar">
            {% block buttons %}<td></td>{% endblock %}{% block pagelist %}<td></td>{% endblock %}
          </tr>
          <tr id="topbar">
          {% if forum_user %}
            <td colspan="2">
              <div id="login_text">
                Welcome, <a href="{{ forum_user.get_absolute_url }}">{{ forum_user.nickname }}</a>.
                [<a href="/accounts/logout/">Logout</a>]
              </div>
            </td>
          {% else %}
            <td colspan="2">
              <div id="login_text">
                <a href="/accounts/login/?next={{ request_path }}">Login/Join</a>
              </div>
            </td>
          {% endif %}
          </tr>
        </table>
{% block content %}
{% endblock %}
        <table>
          <tr id="bottombar">
            <td>&nbsp;</td>
            <td>&nbsp;
              <!-- <div id="mark_read">{% if not request.user.is_anonymous %}<a href="/markread/?next={{ request.META.PATH_INFO }}">mark all posts as read</a>{% endif %}</div> -->
            </td>
          </tr>
          <tr id="buttonbar2">
            {% block buttons2 %}<td>&nbsp;</td>{% endblock %}
            {% block pagelist2 %}<td>&nbsp;</td>{% endblock %}
          </tr>
        </table>
      </div>
{% endblock %}
